FROM bellsoft/liberica-runtime-container:jdk-17-glibc

VOLUME /root/lib
VOLUME /root/logs

MAINTAINER raymond

EXPOSE 14000

CMD ["/bin/bash", "-c", "mkdir /root/study && mkdir /root/lib && mkdir /root/logs && mkdir /root/run"]

WORKDIR /root

COPY study.jar /root/study

ENTRYPOINT ["/bin/bash", "-c", "/root/start.sh study && tail -f /dev/null"]